package com.rcd.viatornisl.android.model;

import java.util.Date;

public class User extends BaseModel {
	
	private int _Id;
	private String _UserName;
	private String _Password;
	private String _Role;
	private String _Email;
	private byte[] _QRCode;
	private Date _Created;
	private Date _Modified;
	
	public User() {
		// Setup the attributes
		this._Id = 0;
		this._UserName = "";
		this._Password = "";
		this._Role = "";
		this._Email = "";
		this._QRCode = null;
		this._Created = new Date();
		this._Modified = new Date();
	}		

	public int getId() {
		return this._Id;
	}

	public void setId(int id) {
		this._Id = id;
	}

	public String getUserName() {
		return this._UserName;
	}

	public void setUserName(String userName) {
		this._UserName = userName;
	}

	public String getPassword() {
		return this._Password;
	}

	public void setPassword(String password) {
		this._Password = password;
	}

	public String getRole() {
		return this._Role;
	}

	public void setRole(String role) {
		this._Role = role;
	}

	public String getEmail() {
		return this._Email;
	}

	public void setEmail(String email) {
		this._Email = email;
	}

	public byte[] getQRCode() {
		return this._QRCode;
	}

	public void setQRCode(byte[] qrCode) {
		this._QRCode = qrCode;
	}

	public Date getCreated() {
		return this._Created;
	}

	public void setCreated(Date created) {
		this._Created = created;
	}

	public Date getModified() {
		return this._Modified;
	}

	public void setModified(Date modified) {
		this._Modified = modified;
	}
	
	@Override
	public String toString() {
		return this.getUserName();
	}
	
}
